package com.ea.mapper;

import com.ea.domain.entity.SysBaseDictionary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 电器商城
 * @since 2022-11-29
 */
@Mapper
public interface SysBaseDictionaryMapper {


    void insertDictionary(SysBaseDictionary dictionary);

    void updateSysDic(@Param("dicId") Long dicId, @Param("dicDesc") String dicDesc);

    List<SysBaseDictionary> selectSysDicByDicType(@Param("type") String type);

    SysBaseDictionary selectSysDicByDesc(@Param("dicDesc") String dicDesc);


    SysBaseDictionary selectSysDicByDicId(@Param("dicId") Long dicId);

    void delSysDicByDicId(@Param("dicId") Long dicId);
}
